import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/store.js'
import Vuex from 'vuex'
import axios from "axios"
Vue.prototype.$axios = axios
Vue.config.productionTip = false
import Vant from 'vant'
import 'vant/lib/index.css'
import 'reset.css'

import { Lazyload} from 'vant';
Vue.use(Vant)
Vue.use(Vuex)
Vue.use(Lazyload)

//过滤器
Vue.filter('filtermoneny', function(val){
  if(val==undefined){
    return []
  }else{
    return '￥' + val.toFixed(2) + '元'
  }

})

new Vue({
  axios,
  router,
  store,
  render: h => h(App)
}).$mount('#app')
